package com.iakuil.app.service.converter;

import com.iakuil.app.common.core.DefaultConverterConfig;
import com.iakuil.app.domain.entity.Author;
import com.iakuil.app.domain.dto.AuthorDto;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import org.springframework.core.convert.converter.Converter;

/**
 * 作者 对象转换器
 *
 * @author Kai
 * @date 2023-12-05
 **/
@Mapper(config = DefaultConverterConfig.class)
public interface AuthorToAuthorDtoConverter extends Converter<Author, AuthorDto> {
    AuthorToAuthorDtoConverter INSTANCE = Mappers.getMapper(AuthorToAuthorDtoConverter.class);
}
